package gui;

import java.awt.Font;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import java.awt.Color;
import javax.swing.UIManager;

public class TrailPanel extends JPanel {

	private JLabel lblRemainingFood;
	private JLabel lblTrailTitle;
	
	private JLabel lblMilesToGo;
	private JLabel lblDate;
	private JLabel lblTotalDistance;
	
	JButton btnTravelOptions;
	JButton btnTravel;
	private JLabel lblMoney;
	private JButton btnSave;
	/**
	 * @return the btnSave
	 */
	public JButton getBtnSave() {
		return btnSave;
	}

	/**
	 * @return the lblPlayerHealth
	 */
	public JLabel getLblPlayerHealth() {
		return lblPlayerHealth;
	}

	/**
	 * @return the lblChar1Health
	 */
	public JLabel getLblChar1Health() {
		return lblChar1Health;
	}

	/**
	 * @return the lblChar2Health
	 */
	public JLabel getLblChar2Health() {
		return lblChar2Health;
	}

	/**
	 * @return the lblChar3Health
	 */
	public JLabel getLblChar3Health() {
		return lblChar3Health;
	}

	/**
	 * @return the lblChar4Health
	 */
	public JLabel getLblChar4Health() {
		return lblChar4Health;
	}

	private JLabel lblPlayerHealth;
	private JLabel lblChar1Health;
	private JLabel lblChar2Health;
	private JLabel lblChar3Health;
	private JLabel lblChar4Health;
	
	/**
	 * Create the panel.
	 */
	public TrailPanel() {
		setLayout(null);

		lblRemainingFood = new JLabel("Remaining Food: <X>");

		lblRemainingFood.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblRemainingFood.setBounds(238, 169, 290, 25);
		add(lblRemainingFood);

		lblTrailTitle = new JLabel("On the Space Trail");
		lblTrailTitle.setHorizontalAlignment(SwingConstants.CENTER);
		lblTrailTitle.setFont(new Font("Tahoma", Font.PLAIN, 30));
		lblTrailTitle.setBounds(10, 11, 684, 46);
		add(lblTrailTitle);

		btnTravelOptions = new JButton("Change travel options");
		btnTravelOptions.setBounds(30, 75, 180, 52);
		add(btnTravelOptions);

		btnTravel = new JButton("Travel for a day");
		btnTravel.setBackground(UIManager.getColor("Button.background"));
		btnTravel.setBounds(30, 206, 180, 52);
		add(btnTravel);

		lblDate = new JLabel("Date: February 12, 1885");
		lblDate.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblDate.setBounds(238, 75, 290, 25);
		add(lblDate);

		lblMilesToGo = new JLabel("Miles to reach <Next Landmark> <Miles>");
		lblMilesToGo.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblMilesToGo.setBounds(238, 100, 290, 25);
		add(lblMilesToGo);

		lblTotalDistance = new JLabel("Total Distance Traveled: <DistTraveled>");
		lblTotalDistance.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblTotalDistance.setBounds(238, 125, 290, 25);
		add(lblTotalDistance);
		
		lblMoney = new JLabel("Money");
		lblMoney.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblMoney.setBounds(238, 194, 290, 25);
		add(lblMoney);
		
		btnSave = new JButton("Save");
		btnSave.setBounds(30, 142, 180, 52);
		add(btnSave);
		
		lblPlayerHealth = new JLabel("<PlayerName> Health: <Health>");
		lblPlayerHealth.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblPlayerHealth.setBounds(454, 75, 226, 25);
		add(lblPlayerHealth);
		
		lblChar1Health = new JLabel("<Char1Name> Health: <Health>");
		lblChar1Health.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblChar1Health.setBounds(454, 100, 226, 25);
		add(lblChar1Health);
		
		lblChar2Health = new JLabel("<Char2Name> Health: <Health>");
		lblChar2Health.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblChar2Health.setBounds(454, 125, 226, 25);
		add(lblChar2Health);
		
		lblChar3Health = new JLabel("<Char3Name> Health: <Health>");
		lblChar3Health.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblChar3Health.setBounds(454, 150, 226, 25);
		add(lblChar3Health);
		
		lblChar4Health = new JLabel("<Char4Name> Health: <Health>");
		lblChar4Health.setFont(new Font("Tahoma", Font.PLAIN, 11));
		lblChar4Health.setBounds(454, 175, 226, 25);
		add(lblChar4Health);
	}
	
	//////////////////////////////////////////////////////////////////////////////
	//
	//
	//	GETTERS AND SETTERS
	//
	//
	//////////////////////////////////////////////////////////////////////////////

	/**
	 * @return the lblRemainingFood
	 */
	public JLabel getLblRemainingFood() {
		return lblRemainingFood;
	}

	/**
	 * @return the lblTrailTitle
	 */
	public JLabel getLblTrailTitle() {
		return lblTrailTitle;
	}

	/**
	 * @return the lblMilesToGo
	 */
	public JLabel getLblMilesToGo() {
		return lblMilesToGo;
	}

	/**
	 * @return the lblDate
	 */
	public JLabel getLblDate() {
		return lblDate;
	}

	/**
	 * @return the lblMoney
	 */
	public JLabel getLblMoney() {
		return lblMoney;
	}

	/**
	 * @return the lblTotalDistance
	 */
	public JLabel getLblTotalDistance() {
		return lblTotalDistance;
	}

	/**
	 * @return the btnTravelOptions
	 */
	public JButton getBtnTravelOptions() {
		return btnTravelOptions;
	}

	/**
	 * @return the btnTravel
	 */
	public JButton getBtnTravel() {
		return btnTravel;
	}
}
